package org.dromara.bean.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 医生对象 his_doctor
 *
 * @author Lion Li
 * @date 2024-10-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("his_doctor")
public class HisDoctor extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 医生名称
     */
    private String name;

    /**
     * 所属科室
     */
    private String depId;

    /**
     * 医生介绍
     */
    private String intro;

    /**
     * 排班计划
     */
    private String plan;

    /**
     * 头像
     */
    private String photo;

//    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "photo")
    @TableField(exist = false)
    private String photoUrl;

    /**
     * 医生级别
     */
    private String level;

    /**
     * 年限
     */
    private String years;

    /**
     * 擅长方向
     */
    private String great;


    /**
     * 接诊数
     */
    private Integer virtuals;

    /**
     * 挂号费
     */
    private BigDecimal price;

    /**
     * 删除标识
     */
    @TableLogic
    private Long delFlag;

    /**
     * 科室名称
     */
    @TableField(exist = false)
    private String title;

}
